$(document).ready(function(){
	//.icon
	$('.ico').hover(
		function() { $(this).addClass('ui-state-hover'); },
		function() { $(this).removeClass('ui-state-hover'); }
	);
	
	//.form-administrator
	if(typeof(checkForm)=="function")
		$('.form-administrator').submit(function(){
			return checkForm();
		})
	
	//.ckeditor
	var ckfinder_url=base_url+'js/ckfinder/';	
	$('.ckedit').each(function(){	
		CKEDITOR.replace($(this)[0], { 
			height:'360px'
			,width:'794px'
			,toolbar:'Full'					
			,filebrowserBrowseUrl:ckfinder_url+'ckfinder.html'
			,filebrowserImageBrowseUrl:ckfinder_url+'ckfinder.html?type=images'
			,filebrowserFlashBrowseUrl:ckfinder_url+'ckfinder.html?type=flash'
			,filebrowserUploadUrl:ckfinder_url+'core/connector/php/connector.php?command=QuickUpload&type=files'
			,filebrowserImageUploadUrl:ckfinder_url+'core/connector/php/connector.php?command=QuickUpload&type=images'
			,filebrowserFlashUploadUrl:ckfinder_url+'core/connector/php/connector.php?command=QuickUpload&type=flash'
		});
	})	
	
	//.ckfinder	
	$('.ckfinder').each(function(){
		
	})	
})	
